package api;

import java.sql.*;
import OraConnectionData.OraConnectionData;

public class api 
{
	
	static private	OraConnectionData m_ocd = new OraConnectionData();
	
	static public void getUnitsByArmyName( String argName ) throws Exception
	{
		
		ResultSet Army;
		Connection connection = m_ocd.getConnection();
		CallableStatement procedure = connection.prepareCall("{call getArmyByName(?) }");	

		procedure.setString( 1 , argName );
		procedure.execute();
		
	}
	
	static public void getUnitsByArmyID( int argPK )
	{
		
	}
	
	static public void getUnitByName( String argName )
	{
		
	}
	
	static public void getUnitbyID( int argPK )
	{
		
	}
	
	static public void getPiecesByUnit( int argPK )
	{
		
	}
	
	static public void getPiecebyID( int argPK )
	{
		
	}
	
	static public void getUnitsByType ( int argType )
	{
		/* Get units by the type of the unit */
	}
	
	static public void getPiecesByType( int argType )
	{
		/* Get all units by the type of the piece (same types as units) */
	}
	


}
